package com.edu.hre.struts.form.recruit;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.entity.HrePageInfo;
import com.edu.hre.db.pojo.HreEducation;
import com.edu.hre.db.pojo.HreLanguage;
import com.edu.hre.db.pojo.HreLicense;
import com.edu.hre.db.pojo.HreSkill;

public class CandidateListForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8696698650789509605L;

	private List<LabelValueBean> listLanguage = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> listEducation = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> listSkill = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> listLicense = new ArrayList<LabelValueBean>();
	private List<CandidateForm> allCandidates = new ArrayList<CandidateForm>();
	
	private String nameKeyWord = "";
	
	private String selectedLanguage = "";
	private String selectedEducation = "";
	private String selectedSkill = "";
	private String selectedLicense = "";
	
	private List<HrePageInfo> listPages = new ArrayList<HrePageInfo>();
	
	private String sortBy = null;
	private boolean isAsc = false;
	
	private int totalItems = 0;
	private int totalPage = 0;

	private boolean canDelete = false;
	private boolean canAdd = false;
	
	public String getSortBy() {
		return sortBy;
	}

	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public CandidateListForm() {
	
	}
	
	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public boolean isCanDelete() {
		return canDelete;
	}

	public void setCanDelete(boolean canDelete) {
		this.canDelete = canDelete;
	}

	public boolean isCanAdd() {
		return canAdd;
	}

	public void setCanAdd(boolean canAdd) {
		this.canAdd = canAdd;
	}

	public List<LabelValueBean> getListLanguage() {
		return listLanguage;
	}

	public void setListLanguage(List<LabelValueBean> listLanguage) {
		this.listLanguage = listLanguage;
	}

	public List<LabelValueBean> getListEducation() {
		return listEducation;
	}

	public void setListEducation(List<LabelValueBean> listEducation) {
		this.listEducation = listEducation;
	}

	public List<LabelValueBean> getListSkill() {
		return listSkill;
	}

	public void setListSkill(List<LabelValueBean> listSkill) {
		this.listSkill = listSkill;
	}

	public List<LabelValueBean> getListLicense() {
		return listLicense;
	}

	public void setListLicense(List<LabelValueBean> listLicense) {
		this.listLicense = listLicense;
	}

	public String getNameKeyWord() {
		return nameKeyWord;
	}

	public void setNameKeyWord(String nameKeyWord) {
		this.nameKeyWord = nameKeyWord;
	}

	public String getSelectedLanguage() {
		return selectedLanguage;
	}

	public void setSelectedLanguage(String selectedLanguage) {
		this.selectedLanguage = selectedLanguage;
	}

	public String getSelectedEducation() {
		return selectedEducation;
	}

	public void setSelectedEducation(String selectedEducation) {
		this.selectedEducation = selectedEducation;
	}

	public String getSelectedSkill() {
		return selectedSkill;
	}

	public void setSelectedSkill(String selectedSkill) {
		this.selectedSkill = selectedSkill;
	}

	public String getSelectedLicense() {
		return selectedLicense;
	}

	public void setSelectedLicense(String selectedLicense) {
		this.selectedLicense = selectedLicense;
	}

	public List<HrePageInfo> getListPages() {
		return listPages;
	}

	public void setListPages(List<HrePageInfo> listPages) {
		this.listPages = listPages;
	}

	public List<CandidateForm> getAllCandidates() {
		return allCandidates;
	}

	public void setAllCandidates(List<CandidateForm> allCandidates) {
		this.allCandidates = allCandidates;
	}
}
